import Vue from 'vue';
import App from './index.vue';
import Router from 'vue-router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from "@/pages/index/router";


Vue.use(ElementUI);
Vue.use(Router)
Vue.config.productionTip = false

// 解决导航条路由重复点击
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
new Vue({
  el: '#app',
  router,
  render: h => h(App)
}).$mount("#app")
